package com.hellobike.haxing.modules.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hellobike.haxing.common.vo.Result;
import com.hellobike.haxing.modules.product.entity.SkuWarehouseStock;

import java.util.Map;

/**
 * @Description
 * @Author ZLB
 * @Date 2020/2/17
 * @Version 1.0
 **/
public interface ISkuWarehouseStockService extends IService<SkuWarehouseStock> {

    /**
     * 批量增减库存
     * @param map  键:skuId,值:库存变化值(扣库存传负数)
     * @param shopId
     * @return
     */
    Result changeSkuStocks(Map<Long, Integer> map, Long shopId);

}
